package com.ctsi.system.app.rest.request;

import com.ctsi.system.domain.DictionaryTreeData;

import java.io.Serializable;

/**
 * @author: zhangjw
 * @Date: 2018/10/8 00:07
 * @Description:
 */
public class AddTreeDataRequest implements Serializable {
    private static final long serialVersionUID = -7536493028846846147L;

    private String name;

    private String code;

    private String parentId;

    private String description;

    private Long order;

    private String typeId;


    public AddTreeDataRequest() {
    }

    public DictionaryTreeData toData(){
        DictionaryTreeData data = new DictionaryTreeData();
        data.setName(this.name);
        data.setCode(this.code);
        data.setParentId(this.parentId);
        data.setDescription(this.description);
        data.setOrder(this.order);
        data.setTypeId(this.typeId);
        return data;
    }

    public String getTypeId() {
        return this.typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getOrder() {
        return this.order;
    }

    public void setOrder(Long order) {
        this.order = order;
    }
}
